package com.fudan.gamestore.mapper;

import com.fudan.gamestore.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    List<Order> getOrderByUserId(@Param("userId") Integer userId);

    List<Order> getAllOrder();

    Order getOrderByOrderId(@Param("orderId") Integer orderId);

    int deleteOrderByOrderId(@Param("orderId") Integer orderId);

    int setOrderStateByOrderId(@Param("orderId") Integer orderId, @Param("state") Integer state);

    int insertOrder(Order order);

    int setOrderMoney(@Param("orderId") Integer orderId, @Param("orderMoney") Integer orderMoney);
}
